<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script src="https://unpkg.com/vue@next"></script>
<div id="app">
    <todo-a></todo-a>
</div>
<script>
    const vueOpt = {
        data(){
            return {

            }
        }
    }

    const app = Vue.createApp(vueOpt);
    // 可以无限循环引用，但是浏览器会做限制，报错提醒
    app.component('todo-a', {
        template:`
            <div>todo-a:</div>
            <todo-b></todo-b>
        `
    })

    app.component('todo-b', {
        template: `
            <div>todo-b:</div>
            <todo-a></todo-a>
        `
    })

    app.component('todo-c', {
        template: `
            <div>todo-b:</div>
        `
    })

    app.mount('#app')

</script>
</body>
</html>
